<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" DynamicMasterPageFile="~masterurl/default.master" Inherits="Ventigrate.Shared.ExternalMembership.WebControls.RoleDelete" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBar" src="~/_controltemplates/ToolBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="~/_controltemplates/ToolBarButton.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Register Tagprefix="VSEMS" Namespace="Ventigrate.Shared.ExternalMembership.WebControls" Assembly="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>

<asp:Content ID="Content1" contentplaceholderid="PlaceHolderPageTitle" runat="server">
	<SharePoint:EncodedLiteral ID="PageTitle" Text="Delete external role" EncodeMethod="HtmlEncode" runat="server"/>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
	<SharePoint:EncodedLiteral ID="TitleArea" Text="Delete external role" EncodeMethod="HtmlEncode" runat="server"/>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">
	<script language="javascript">
	try{
		document.getElementById("BtnCancel").focus();
	}
	catch(e){}
	</script>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderId="PlaceHolderMain" runat="server">

    <wssuc:ToolBar id="onetidNavNodesTB" runat="server">
        <Template_Buttons>
            <wssuc:ToolBarButton 
                runat="server"
	            Text="Display Users"
	            id="idUsersDisp"
	            ToolTip="Display Users"
	            NavigateUrl="UsersDisp.aspx"
	            ImageUrl="/_layouts/15/images/VSEMS/usersdisp.png"
	            AccessKey="U" />
            <wssuc:ToolBarButton 
                runat="server"
	            Text="Display Roles"
	            id="idRolesDisp"
	            ToolTip="Display Roles"
	            NavigateUrl="RolesDisp.aspx"
	            ImageUrl="/_layouts/15/images/VSEMS/rolesdisp.png"
	            AccessKey="R"/>
        </Template_Buttons>
    </wssuc:ToolBar>

<table border="0" width="100%" cellspacing="0" cellpadding="0" class="ms-descriptiontext">
    <wssuc:InputFormSection runat="server" Title="Role Name">
	    <Template_InputFormControls>
		    <wssuc:InputFormControl runat="server" LabelText="Type the role name:">
			    <Template_Control>
			        <SharePoint:InputFormTextBox Title="Role Name" Enabled="false" class="ms-input" Columns="40" maxlength="255" ID="txtRole" Direction="LeftToRight" Runat="server" />
			    </Template_Control>
		    </wssuc:InputFormControl>
	    </Template_InputFormControls>
    </wssuc:InputFormSection>
    <wssuc:InputFormSection runat="server" id="UsersInRole" Title="Users in role">
        <Template_InputFormControls>
	        <wssuc:InputFormControl runat="server">
		        <Template_Control>
                    <asp:Label ID="lblMessage" runat="server" Text=""></asp:Label>
                    <ul>
                        <asp:Repeater ID="usersList" runat="server">
                            <ItemTemplate>
                                <li><a href="UserEdit.aspx?UserName=<%# Container.DataItem %>"><%# Container.DataItem %></a></li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
		        </Template_Control>
	        </wssuc:InputFormControl>
        </Template_InputFormControls>
    </wssuc:InputFormSection>
    <wssuc:ButtonSection runat="server">
	    <Template_Buttons>
	    <asp:Button UseSubmitBehavior="false" runat="server" CssClass="ms-ButtonHeightWidth" OnClick="OnDelete" Text="Delete" id="BtnDelete" accesskey="D"/>
	    </Template_Buttons>
    </wssuc:ButtonSection>
</table>
</asp:Content>
